package com.itheima.dao;


import com.itheima.domian.Role;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author M
 */
public interface RoleDao {


    @Select("select * from t_role")
    List<Role> findAll();

    @Select("SELECT * FROM t_user_role tu,t_role tr WHERE tu.role_id = tr.id AND tu.user_id =1")
    List<Role> findById(Integer id);
}
